﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LDCRNewEdit.Model
{
    class BaseDataFormat
    {
        public BaseDataFormat() { }

        public BaseDataFormat(BaseDataFormat df)
        {
            this.NodeName = df.NodeName;
            this.ArrayNum = df.ArrayNum;
            this.GroupNum = df.GroupNum;
            this.Len = df.Len;
            this.IsString = df.IsString;
            this.IsName = df.IsName;
            this.Type = df.Type;
            this.Description = df.Description;
        }

        /// <summary>
        /// 显示的文字
        /// </summary>
        public string NodeName
        {
            get;
            set;
        }

        /// <summary>
        /// 数组个数
        /// </summary>
        public int ArrayNum
        {
            get;
            set;
        }

        /// <summary>
        /// 数组结构成员个数
        /// </summary>
        public int GroupNum
        {
            get;
            set;
        }

        /// <summary>
        /// 字节数
        /// </summary>
        public int Len
        {
            get;
            set;
        }

        /// <summary>
        /// 是否字串
        /// </summary>
        public int IsString
        {
            get;
            set;
        }

        /// <summary>
        /// 是否名称
        /// </summary>
        public int IsName
        {
            get;
            set;
        }

        /// <summary>
        /// 引用数据类型
        /// </summary>
        public int Type
        {
            get;
            set;
        }

        /// <summary>
        /// 说明
        /// </summary>
        public string Description
        {
            get;
            set;
        }
    }
}
